package cn.zhy.user.mapper;

import cn.zhy.user.domain.User;
import cn.zhy.basic.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Mingo
 * @since 2022-07-11
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 查询手机号码是否被注册
     * @param phone
     * @return
     */
    User loadByPhone(String phone);
    //判断邮箱是都被注册过
    User loadByEmail(String email);
}
